//
//  Books.m
//  OC03-HomeWork
//
//  Created by dllo on 16/7/6.
//  Copyright © 2016年 高雅馨. All rights reserved.
//

#import "Books.h"

@implementation Books
- (instancetype)initWithName:(NSString *)name Price:(float)price {
    self = [super init];
    if (self) {
        _name = name;
        _price = price;
    }
    return self;
}
+ (instancetype)booksWithName:(NSString *)name Price:(float)price {
    return [[Books alloc] initWithName:name Price:price];
}

@end
